<?php

namespace app\model\admin;

use crmeb\basic\BaseModel;
use think\model\Relation;

class TeacherModel extends BaseModel
{
    protected $key = 'id';
    protected $table = 'sj_teacher';
    protected $autoWriteTimestamp = true;

    public function certs(): Relation
    {
        return $this->hasMany(TeacherCertModel::class, 'teacher_id', 'id');
    }
}